package com.grwx.omc.admin.controller;

import com.grwx.omc.admin.service.UserService;
import com.grwx.omc.entity.ResponseData;
import com.grwx.omc.entity.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@RequestMapping("/auth")
public class SysAuthController {

    @Resource
    private UserService userService;

    @GetMapping("/login")
    @ApiOperation("用户管理.用户登录")
    public ResponseData login(String userCode, String password) {

        //查询用户信息
        return userService.login(userCode,password);
    }
}
